{extend name="base" /}
{block name="body"}
<div class="layui-body">
    <!--tab标签-->
    <div class="layui-tab layui-tab-brief">
        <ul class="layui-tab-title">
            <li class=""><a href="{:url('admin/MsgAndMailConfig/index')}">短信邮件模板管理</a></li>
            <li class="layui-this">添加模板</li>
            <li class=""><a href="{:url('admin/MsgAndMailConfig/message')}">短信配置</a></li>
            <li class=""><a href="{:url('admin/MsgAndMailConfig/mail')}">邮件配置</a></li>
        </ul>
        <div class="layui-tab-content">
            <div class="layui-tab-item layui-show">
                <form class="layui-form form-container" action="{:url('admin/MsgAndMailConfig/doAdd')}" method="post">
                    <div class="layui-form-item">
                        <label class="layui-form-label">标题</label>
                        <div class="layui-input-block">
                            <input type="text" name="title" value="" required  lay-verify="required" placeholder="请输入标题" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">code</label>
                        <div class="layui-input-block">
                            <input type="text" name="code" value="" required  lay-verify="required" placeholder="请输入模板code,用这个调取模板内容，例：MSG_REGISTER_TEMPLATE" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">模板内容</label>
                        <div class="layui-input-block">
                            <textarea name="content" placeholder="请输入模板内容，例：您好，您的短信验证码为{1}。" class="layui-textarea" required  lay-verify="required" id="content"></textarea>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">类型</label>
                        <div class="layui-input-block">
                            <input type="radio" name="type" value="0" title="短信模板" checked="checked">
                            <input type="radio" name="type" value="1" title="邮件模板">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">状态</label>
                        <div class="layui-input-block">
                            <input type="radio" name="status" value="0" title="启用" checked="checked">
                            <input type="radio" name="status" value="1" title="禁用">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <div class="layui-input-block">
                            <button class="layui-btn" lay-submit lay-filter="*">添加</button>
                            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
{/block}